package com.han.hotelplat.pojo.emtask;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import java.util.Map;

import com.han.hotelplat.pojo.childtask.Childtask;
import com.han.hotelplat.pojo.employee.Employee;
import com.han.hotelplat.pojo.task.Task;

/**
 * Emtask entity. @author MyEclipse Persistence Tools
 */

public class Emtask implements java.io.Serializable {

	// Fields

	private Integer id;
	private String taskid;
	private Date creattime;
	private Date starttime;
	private Date endtime;
	private Float reward;
	private Integer hotelid;
	private Date canceltime;
	private String emid;
	private String cancercause;//取消原因
	private Integer isstop;//是否在服务中途取消0否，1是
	private Integer tasktype;//任务类型0定点任务，1临时任务
	
	private Float unitprice;//单价
	private String realname;
	private String tel;
	
	private Integer isJoin;//是否已报名1已报名，2未报名
	private Integer isUpWord;//是否已提交当日考勤
	
	
	private float consume;//累积服务费
	private float todayroomcount;//当日清洁房量
	private float sumroomcount;//已清洁房量量
	private int days;//已清洁天数
	
	private Task task;
	private String area;//地区
	private String stringEmid;
	
	private String pushkey;
	
	Map<String ,Float>ctMap;//日期，房量
	
	private Employee employee;
	
	
	// Constructors

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	/** default constructor */
	public Emtask() {
	}

	/** full constructor */
	public Emtask(String taskid, Date creattime, Date starttime,
			Date endtime, Float reward, Integer hotelid, Date canceltime,
			String emid, String cancercause, Integer isstop, Integer tasktype) {
		this.taskid = taskid;
		this.creattime = creattime;
		this.starttime = starttime;
		this.endtime = endtime;
		this.reward = reward;
		this.hotelid = hotelid;
		this.canceltime = canceltime;
		this.emid = emid;
		this.cancercause = cancercause;
		this.isstop = isstop;
		this.tasktype = tasktype;
	}

	public Emtask(String taskid, Date creattime, Date starttime,
			Date endtime, Float reward, Integer hotelid, Date canceltime,
			String emid, String cancercause) {
		this.taskid = taskid;
		this.creattime = creattime;
		this.starttime = starttime;
		this.endtime = endtime;
		this.reward = reward;
		this.hotelid = hotelid;
		this.canceltime = canceltime;
		this.emid = emid;
		this.cancercause = cancercause;
	}
	
	public Emtask(String taskid, Integer tasktype, Date creattime, Date starttime,
			Date endtime, Float reward, Integer hotelid, Date canceltime,
			String emid, String cancercause) {
		this.taskid = taskid;
		this.creattime = creattime;
		this.starttime = starttime;
		this.endtime = endtime;
		this.reward = reward;
		this.hotelid = hotelid;
		this.canceltime = canceltime;
		this.emid = emid;
		this.cancercause = cancercause;
		this.tasktype = tasktype;
	}
	
	
	public Emtask(String emid, String realname, String tel, String taskid,
			Date canceltime, String area, String pushkey, Integer isstop){
		this.emid = emid;
		this.realname = realname;
		this.tel = tel;
		this.taskid = taskid;
		this.canceltime = canceltime;
		this.area = area;
		this.pushkey = pushkey;
		this.isstop = isstop;
	}
	
	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTaskid() {
		return this.taskid;
	}

	public void setTaskid(String taskid) {
		this.taskid = taskid;
	}

	public Date getCreattime() {
		return this.creattime;
	}

	public void setCreattime(Date creattime) {
		this.creattime = creattime;
	}

	public Date getStarttime() {
		return this.starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}

	public Date getEndtime() {
		return this.endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public Float getReward() {
		return this.reward;
	}

	public void setReward(Float reward) {
		this.reward = reward;
	}

	public Integer getHotelid() {
		return this.hotelid;
	}

	public void setHotelid(Integer hotelid) {
		this.hotelid = hotelid;
	}

	public Date getCanceltime() {
		return this.canceltime;
	}

	public void setCanceltime(Date canceltime) {
		this.canceltime = canceltime;
	}

	public String getEmid() {
		return this.emid;
	}

	public void setEmid(String emid) {
		this.emid = emid;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public Task getTask() {
		return task;
	}

	public void setTask(Task task) {
		this.task = task;
	}

	public Integer getIsJoin() {
		return isJoin;
	}

	public void setIsJoin(Integer isJoin) {
		this.isJoin = isJoin;
	}

	public Integer getIsUpWord() {
		return isUpWord;
	}

	public void setIsUpWord(Integer isUpWord) {
		this.isUpWord = isUpWord;
	}

	public float getConsume() {
		return consume;
	}

	public void setConsume(float consume) {
		this.consume = consume;
	}

	public float getTodayroomcount() {
		return todayroomcount;
	}

	public void setTodayroomcount(int todayroomcount) {
		this.todayroomcount = todayroomcount;
	}

	public float getSumroomcount() {
		return sumroomcount;
	}

	public void setSumroomcount(float sumroomcount) {
		this.sumroomcount = sumroomcount;
	}

	public int getDays() {
		return days;
	}

	public void setDays(int days) {
		this.days = days;
	}

	public String getCancercause() {
		return cancercause;
	}

	public void setCancercause(String cancercause) {
		this.cancercause = cancercause;
	}

	public Float getUnitprice() {
		return unitprice;
	}

	public void setUnitprice(Float unitprice) {
		this.unitprice = unitprice;
	}

	public Map<String, Float> getCtMap() {
		return ctMap;
	}

	public void setCtMap(Map<String, Float> ctMap) {
		this.ctMap = ctMap;
	}

	public String getStringEmid() {
		return emid.toString();
	}

	public void setStringEmid(String stringEmid) {
		this.stringEmid = stringEmid;
	}

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public String getPushkey() {
		return pushkey;
	}

	public void setPushkey(String pushkey) {
		this.pushkey = pushkey;
	}

	public Integer getIsstop() {
		return isstop;
	}

	public void setIsstop(Integer isstop) {
		this.isstop = isstop;
	}

	public Integer getTasktype() {
		return tasktype;
	}

	public void setTasktype(Integer tasktype) {
		this.tasktype = tasktype;
	}
	
}